<template>
  <div>
    <table>
      <tr>
        <td>新闻标题</td>
        <td>新闻内容</td>
      </tr>
      <tr v-for="i in aa">
        <td>{{i.title}}</td>
        <td>{{i.content}}</td>
      </tr>
    </table>
  </div>
</template>

<script>
export default {
  name: "bbb",
  data(){
    return{
      aa:[]
    }
  },
  methods:{
    get_news(){
      this.$axios.get('users/news/')
        .then(res=>{
          if(res.data.code==200){
            this.news = res.data.list
          }
        })
    }
  },
  mounted() {
    this.get_news()
  }
}
</script>

<style scoped>

</style>
